package com.interview.tech.services;

import java.util.List;

import com.interview.tech.dao.QuestionDao;
import com.interview.tech.model.Question;

public class QuestionServiceImpl implements QuestionService {

	private QuestionDao questionDao;

	public List<Question> getAllQuestions(){
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("Caling service");
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("********************");
		return questionDao.getAllQuestions();
	}

	public QuestionDao getQuestionDao() {
		return questionDao;
	}

	public void setQuestionDao(QuestionDao questionDao) {
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("Setting DAO");
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("********************");
		
		this.questionDao = questionDao;
	}

	
}
